Skip to content

steinarb/jersey-karaf-feature

Repository files navigation

Jersey karaf feature

This is a maven pom that generates an apache karaf feature repository with a feature loading the jersey JAX-RS implementation.

https://github.com/steinarb/jersey-karaf-feature/actions/workflows/jersey-karaf-feature-maven-ci-build.yml/badge.svg https://maven-badges.herokuapp.com/maven-central/no.priv.bang.karaf/jersey-karaf-feature/badge.svg

Installing the feature in karaf

Give the following commands from the karaf console:

feature:repo-add mvn:no.priv.bang.karaf/jersey/LATEST/xml/features
feature:install jersey-karaf-feature

Use the feature in a maven project

If you have a maven project building an OSGi bundle with a karaf feature repository attached, using the karaf-maven-plugin, then you can add a runtime dependency to this feature by adding the following to the maven dependencies of your project:

  1. Import the BoM (Bill of Materials) in your project’s dependencyManagement
    <build>
     <dependencyManagement>
      <dependencies>
       <dependency>
        <groupId>no.priv.bang.karaf</groupId>
        <artifactId>jersey</artifactId>
        <version>1.9.8</version>
        <type>pom</type>
        <scope>import</scope>
       </dependency>
      </dependencies>
     </dependencyManagement>
    </build>
        
  2. Add a dependency to the karaf feature repository of the feature (note: no version, because that is supplied by the BoM import)
    <build>
     <dependencies>
      <dependency>
       <groupId>no.priv.bang.karaf</groupId>
       <artifactId>jersey</artifactId>
       <type>xml</type>
       <classifier>features</classifier>
      </dependency>
     </dependencies>
    </build>
        

Release history

It might simplify things if I’m able give the feature the same version number as the jersey version the feature pulls in and starts. But for the moment the version numbers are different.

Also I have to bump HK2 (maybe) and jackson (for sure) at the same time when making a new release of this karaf feature and the versions of HK2 and jackson don’t match the jersey version.

DateReleaseJersey versionComment
<2024-03-25 Mon 10:41>1.9.82.42Use jersey 2.42 and jackson 2.16.2
<2023-11-04 Sat 22:58>1.9.72.41Use jersey 2.41 and jackson 2.15.1, replace javax.ws.rs-api 2.1.1 with jakarta.ws.rs-api 2.1.6
<2023-07-30 Sun 12:49>1.9.62.40Use jersey 2.40 and jackson 2.15.2
<2023-04-25 Tue 22:52>1.9.52.39.1Use jackson 2.15.0 to really fix CWE-400
<2023-04-24 Mon 18:20>1.9.42.39.1Use jersey 2.39.1. Also use jackson 2.14.2 to fix CWE-400
<2022-11-28 Mon 20:13>1.9.32.37Use jersey 2.37. Also use jackson 2.14.1 to fix CVE-2022-42003 and CVE-2022-42004
<2022-08-09 Tue 22:21>1.9.22.36Use jersey 2.36
<2022-05-30 Mon 20:18>1.9.12.35Use jackson 2.13.3
<2022-05-28 Sat 23:10>1.9.02.35Use karaf 4.4.0 and OSGi 8
<2022-02-19 Sat 21:59>1.8.52.35jersey 2.35 and jackson 2.13.1
<2021-06-15 Tue 19:23>1.8.42.34jersey 2.34 and jackson 2.12.3
<2021-05-02 Sun 17:09>1.8.32.33Split repository feature into multiple files, add jackson java.time module feature
<2021-04-17 Sat 17:17>1.8.22.33Add a Bill of Materials (BoM) POM
<2021-01-24 Sun 21:00>1.8.12.33Use jersey 2.33 and jackson 2.12.1
<2021-01-23 Sat 13:28>1.8.02.30.1Changed the maven coordinates of the feature to allow for integration test
<2020-09-11 Fri 19:35>1.7.12.30.1Don’t load servicemix javax.inject at runtime (might conflict with the HK2 javax.inject bundle)
<2020-04-09 Thu 20:29>1.7.02.30.1Use jackson 2.10.3 and HK2 2.6.1
<2020-03-04 Wed 23:49>1.6.02.30Use jackson-databind 2.9.10.3
<2020-02-07 Fri 21:55>1.5.02.30Use jersey 2.30 and jackson-databind 2.9.10.2 (Note! jersey 2.28 doesn’t work on OSGi with JDK8)
<2019-11-05 Tue 22:22>1.4.02.28Use jackson-databind 2.9.10.1
<2019-06-08 Sat 22:22>1.3.02.28Use jackson 2.9.10
<2019-08-01 Thu 09:33>1.2.02.28Use security mini-patch 2.9.9.2 of jackson-databind
<2019-06-10 Mon 20:46>1.1.02.27Split HK2 into separate feature that is loaded first
<2019-06-09 Sun 22:22>1.0.02.27

License

The license of this karaf feature, is Apache Public License v 2.0

See the LICENSE file for details.

About

An apache karaf feature repository containing a feature that will load the Jersey JAX-RS implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages